package com.demo.domain.entity;


import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 
 * @TableName logistics_sendinfo
 */
@TableName(value ="logistics_sendinfo")
@Data
public class LogisticsSendinfo implements Serializable {
    /**
     * 订单号
     */
    @TableId(type = IdType.AUTO)
    private Long orderNumber;

    /**
     * 订单状态
     */
    private String orderStatus;

    /**
     * 寄件人手机号
     */
    private String sender;

    /**
     * 寄件人姓名
     */
    private String senderName;

    /**
     * 寄件人地址
     */
    private String senderAddress;

    /**
     * 收件人手机号
     */
    private String recipient;

    /**
     * 收件人姓名
     */
    private String recipientName;

    /**
     * 收件人地址
     */
    private String recipientAddress;

    /**
     * 支付金额
     */
    private String paymentAmount;

    /**
     * 物流公司
     */
    private String logisticsCompany;

    /**
     * 下单时间
     */
    private Date orderTime;

    /**
     * 登录账户
     */
    private String account;

    /**
     * 寄件人地区
     */
    private String senderArea;

    /**
     * 收件人地区
     */
    private String recipientArea;

    /**
     * 途径区域
     */
    private String routeArea;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LogisticsSendinfo other = (LogisticsSendinfo) that;
        return (this.getOrderNumber() == null ? other.getOrderNumber() == null : this.getOrderNumber().equals(other.getOrderNumber()))
            && (this.getOrderStatus() == null ? other.getOrderStatus() == null : this.getOrderStatus().equals(other.getOrderStatus()))
            && (this.getSender() == null ? other.getSender() == null : this.getSender().equals(other.getSender()))
            && (this.getSenderName() == null ? other.getSenderName() == null : this.getSenderName().equals(other.getSenderName()))
            && (this.getSenderAddress() == null ? other.getSenderAddress() == null : this.getSenderAddress().equals(other.getSenderAddress()))
            && (this.getRecipient() == null ? other.getRecipient() == null : this.getRecipient().equals(other.getRecipient()))
            && (this.getRecipientName() == null ? other.getRecipientName() == null : this.getRecipientName().equals(other.getRecipientName()))
            && (this.getRecipientAddress() == null ? other.getRecipientAddress() == null : this.getRecipientAddress().equals(other.getRecipientAddress()))
            && (this.getPaymentAmount() == null ? other.getPaymentAmount() == null : this.getPaymentAmount().equals(other.getPaymentAmount()))
            && (this.getLogisticsCompany() == null ? other.getLogisticsCompany() == null : this.getLogisticsCompany().equals(other.getLogisticsCompany()))
            && (this.getOrderTime() == null ? other.getOrderTime() == null : this.getOrderTime().equals(other.getOrderTime()))
            && (this.getAccount() == null ? other.getAccount() == null : this.getAccount().equals(other.getAccount()))
            && (this.getSenderArea() == null ? other.getSenderArea() == null : this.getSenderArea().equals(other.getSenderArea()))
            && (this.getRecipientArea() == null ? other.getRecipientArea() == null : this.getRecipientArea().equals(other.getRecipientArea()))
            && (this.getRouteArea() == null ? other.getRouteArea() == null : this.getRouteArea().equals(other.getRouteArea()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderNumber() == null) ? 0 : getOrderNumber().hashCode());
        result = prime * result + ((getOrderStatus() == null) ? 0 : getOrderStatus().hashCode());
        result = prime * result + ((getSender() == null) ? 0 : getSender().hashCode());
        result = prime * result + ((getSenderName() == null) ? 0 : getSenderName().hashCode());
        result = prime * result + ((getSenderAddress() == null) ? 0 : getSenderAddress().hashCode());
        result = prime * result + ((getRecipient() == null) ? 0 : getRecipient().hashCode());
        result = prime * result + ((getRecipientName() == null) ? 0 : getRecipientName().hashCode());
        result = prime * result + ((getRecipientAddress() == null) ? 0 : getRecipientAddress().hashCode());
        result = prime * result + ((getPaymentAmount() == null) ? 0 : getPaymentAmount().hashCode());
        result = prime * result + ((getLogisticsCompany() == null) ? 0 : getLogisticsCompany().hashCode());
        result = prime * result + ((getOrderTime() == null) ? 0 : getOrderTime().hashCode());
        result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
        result = prime * result + ((getSenderArea() == null) ? 0 : getSenderArea().hashCode());
        result = prime * result + ((getRecipientArea() == null) ? 0 : getRecipientArea().hashCode());
        result = prime * result + ((getRouteArea() == null) ? 0 : getRouteArea().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderNumber=").append(orderNumber);
        sb.append(", orderStatus=").append(orderStatus);
        sb.append(", sender=").append(sender);
        sb.append(", senderName=").append(senderName);
        sb.append(", senderAddress=").append(senderAddress);
        sb.append(", recipient=").append(recipient);
        sb.append(", recipientName=").append(recipientName);
        sb.append(", recipientAddress=").append(recipientAddress);
        sb.append(", paymentAmount=").append(paymentAmount);
        sb.append(", logisticsCompany=").append(logisticsCompany);
        sb.append(", orderTime=").append(orderTime);
        sb.append(", account=").append(account);
        sb.append(", senderArea=").append(senderArea);
        sb.append(", recipientArea=").append(recipientArea);
        sb.append(", routeArea=").append(routeArea);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}